<script setup lang='ts'>
    import { reactive } from "vue";
    import { useGetByIdApi } from '@/views/${t.varName}/${t.varName}-api'
    defineExpose({
        open
    })
    const data = reactive({
        isShow: false,
        info: {
            <#list t.getTallList() as c>
                ${c.fieldName}:'',
            </#list>
        }
    })
    function open(id) {
        data.isShow = true
        useGetByIdApi({ 'id': id }).then(res => {
            data.info = res.data
        })
    }
</script>

<template>
    <el-dialog v-model="data.isShow">
        <el-descriptions title="详情">
            <#list t.getTallList() as c>
                <el-descriptions-item label="${c.columnComment3}">{{ data.info.${c.fieldName} }}</el-descriptions-item>
            </#list>
        </el-descriptions>
    </el-dialog>
</template>


<style lang='less' scoped>
</style>